package com.foreverwin.jzymes.production.labor.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foreverwin.jzymes.production.labor.mapper.LaborAttendanceLogMapper;
import com.foreverwin.jzymes.production.labor.domain.LaborAttendanceLog;
import com.foreverwin.jzymes.production.labor.service.ILaborAttendanceLogService;

/**
 * 人力出勤记录 服务层实现
 * 
 * @author levy
 * @date 2019-03-19
 */
@Service
public class LaborAttendanceLogServiceImpl implements ILaborAttendanceLogService
{
	@Autowired
	private LaborAttendanceLogMapper laborAttendanceLogMapper;

	/**
     * 查询人力出勤记录信息
     * 
     * @param handle 人力出勤记录ID
     * @return 人力出勤记录信息
     */
    @Override
	public LaborAttendanceLog selectLaborAttendanceLogById(String handle)
	{
	    return laborAttendanceLogMapper.selectLaborAttendanceLogById(handle);
	}
	
	/**
     * 查询人力出勤记录列表
     * 
     * @param laborAttendanceLog 人力出勤记录信息
     * @return 人力出勤记录集合
     */
	@Override
	public List<LaborAttendanceLog> selectLaborAttendanceLogList(LaborAttendanceLog laborAttendanceLog)
	{
	    return laborAttendanceLogMapper.selectLaborAttendanceLogList(laborAttendanceLog);
	}
	
    /**
     * 新增人力出勤记录
     * 
     * @param laborAttendanceLog 人力出勤记录信息
     * @return 结果
     */
	@Override
	public int insertLaborAttendanceLog(LaborAttendanceLog laborAttendanceLog)
	{
	    return laborAttendanceLogMapper.insertLaborAttendanceLog(laborAttendanceLog);
	}
	
	/**
     * 修改人力出勤记录
     * 
     * @param laborAttendanceLog 人力出勤记录信息
     * @return 结果
     */
	@Override
	public int updateLaborAttendanceLog(LaborAttendanceLog laborAttendanceLog)
	{
	    return laborAttendanceLogMapper.updateLaborAttendanceLog(laborAttendanceLog);
	}

	/**
     * 删除人力出勤记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteLaborAttendanceLogByIds(String ids)
	{
		return laborAttendanceLogMapper.deleteLaborAttendanceLogByIds(ids.split(","));
	}
	
}
